// Dialogue script for town 3: Thralni's castle

begintalkscript;

variables;

// *** Thralni ***

begintalknode 1;
	state = -1;
	personality = 20;
	nextstate = 2;
	condition = 1;
	question = "Emperor Thralni";
	text1 = "He looks at you, and then says: _You are standing  bit far, i can aberly hear you speak. It's the age. Could you come just a little forward please?_";
	action = END_TALK;

begintalknode 2;
	state = 2;
	personality = 20;
	nextstate = -1;
	condition = 1;
	question = "What do you want? There is nothing to talk about.";
	text1 = "He looks at you, pulls his left eyebrow up, and then, in a commanding voice, he says: _Fine with me! You want to be killed right away. Well, let's start then, shall we?_";
	action = END_TALK;
	code = 
		set_attitude(6,10);
		set_attitude(7,10);
		set_attitude(8,10);
		set_attitude(10,10);
		set_attitude(11,10);
		set_attitude(12,10);
		set_attitude(13,10);
		set_attitude(14,10);
		set_attitude(15,10);
		set_attitude(16,10);
		set_attitude(17,10);
		set_attitude(18,10);
		set_attitude(21,10);
		set_attitude(69,10);
		
		set_mobility(6,1);
		set_mobility(7,1);
		set_mobility(8,1);
		set_mobility(10,1);
		set_mobility(11,1);
		set_mobility(12,1);
		set_mobility(13,1);
		set_mobility(14,1);
		set_mobility(15,1);
		set_mobility(16,1);
		set_mobility(17,1);
		set_mobility(18,1);
		set_mobility(21,1);
		set_mobility(69,1);
	break;

begintalknode 3;
	state = 2;
	personality = 20;
	nextstate = 3;
	condition = 1;
	question = "Why did you do all this?";
	text1 = "He doesn't seem surprised that you ask this. _Think of it like this: You are a happy ruler and everybody likes you, then the Empire came and just started fighting me and my army. I didn't stand a chance. Wouldn't you seek revenge?_";

begintalknode 4;
	state = 3;
	personality = 20;
	nextstate = 4;
	condition = 1;
	question = "Yes of course, but in this way? You are killing your own people!";
	text1 = "_Yes, that is an unfortunate thing in this case._ He stands up and sits again, in another pose. _You're absolutely right about that._";

begintalknode 5;
	state = 3;
	personality = 20;
	nextstate = 4;
	condition = 1;
	question = "No. I would have tried to come back to the province and to do it in a peaceful way.";
	text1 = "_Peaceful!_ He looks at you as if you were a pile of filth. _Peaceful. I don't think that was an option in this case. For God's sake! I had to flee my own territory!_";

begintalknode 6;
	state = 4;
	personality = 20;
	nextstate = 2;
	condition = 1;
	question = "We understand that, but still. It is not right to do it in this way.";
	text1 = "Mockingly, he repeats after you: _Not right in this way._ Then he looks at you like somebody looking at a pile of dirt. _I don't care about what you think of me. You'll die anyway. Any last questions before you die?_";
	
begintalknode 7;
	state = 2;
	personality = 20;
	nextstate = 5;
	condition = 1;
	question = "Could you tell us about your family?";
	text1 = "He looks surprised at you. _What about them?_";

begintalknode 8;
	state = 5;
	personality = 20;
	nextstate = 6;
	condition = 1;
	question = "An ancestor of you was a high commander in the Empire army, no?";
	text1 = "_Ah, yes. Yes, that was indeed Thralni III._ The way he says the name, you suspect he wasn't the jewel of the family. _The bastard. He left the Thraldom and joined our enemies side! Can you imagine?_";

begintalknode 9;
	state = 6;
	personality = 20;
	nextstate = 7;
	condition = 1;
	question = "So the Thraldom and the Empire were enemies for long before already?";
	text1 = "He nods. _Yes. Ever since the Empire was small, it was arguing with the Thraldom. Mainly about land and such. It was only now, though, during my time, that they actually tried to conquer the Thraldom._";

begintalknode 10;
	state = 7;
	personality = 20;
	nextstate = 7;
	condition = 1;
	question = "Would you have any idea why they would have waited so long?";
	text1 = "He shrugs. _There were spies. They tried to infiltrate us several times. They didn't succeed, though._ He nods while saying that. _And you, you little pesky rodents, are agents of the Empire, and that is why I want you dead._";

begintalknode 11;
	state = 7;
	personality = 20;
	nextstate = 8;
	condition = 1;
	question = "The Empire is a strange place, but a powerful force.";
	text1 = "He smirks. _Heh. You think so? They are cowards. You have no idea whatsoever of what they did to the Thraldom when they first came here, do you? Well, let me tell you._";

begintalknode 12;
	state = 8;
	personality = 20;
	nextstate = 9;
	condition = 1;
	question = "Please do so.";
	text1 = "He nods approvingly. _Good. Now listen carefully to all that I say. See if you still want to kill me after this._";
	text2 = "_The Thraldom and the Empire have been for a long time enemies of each other. However, the Thraldom never attacked the Empire, despite it being much larger and stronger at that time than the Empire. The Empire was still small._";
	text3 = "_My great grandfather Thralni I was, of course, the first to rule the Thraldom, but he wasn't the first Emperor. Thralni I was the one to claim the land for his people and to found the Thraldom. These were relatively quiet years._";
	text4 = "_However, as the Empire grew, it became more vicious. Around this time Avernum was discovered, and Thralni III, the fool, went into the Empire army. I don't believe this to have been his own choice. I think he was ordered to do it._";
	
begintalknode 13;
	state = 8;
	personality = 20;
	nextstate = -1;
	condition = 1;
	question = "No, we'd rather not hear it from you.";
	text1 = "He seems surprised. Disgusted he looks at you. _Ugh. Empire agents, I hate them. I want to finish this off quickly._ He calls for his guards, and the fighting begins. This is the moment to kill Thralni. Don't fail Riverrod.";
	code = 
		set_attitude(6,10);
		set_attitude(7,10);
		set_attitude(8,10);
		set_attitude(10,10);
		set_attitude(11,10);
		set_attitude(12,10);
		set_attitude(13,10);
		set_attitude(14,10);
		set_attitude(15,10);
		set_attitude(16,10);
		set_attitude(17,10);
		set_attitude(18,10);
		set_attitude(21,10);
		set_attitude(69,10);
		
		set_mobility(6,1);
		set_mobility(7,1);
		set_mobility(8,1);
		set_mobility(10,1);
		set_mobility(11,1);
		set_mobility(12,1);
		set_mobility(13,1);
		set_mobility(14,1);
		set_mobility(15,1);
		set_mobility(16,1);
		set_mobility(17,1);
		set_mobility(18,1);
		set_mobility(21,1);
		set_mobility(69,1);
	break;
	action = END_TALK;

begintalknode 14;
	state = 9;
	personality = 20;
	nextstate = 10;
	condition = 1;
	question = "Why do you think that?";
	text1 = "_For if he wouldn't have done it, the Empire would have surely attacked the Thraldom! If that is true, he wasn't such a bastard after all, but still. An Emperor doesn't leave his people. A good Emperor stays and protects his people.";

begintalknode 15;
	state = 10;
	personality = 20;
	nextstate = 11;
	condition = 1;
	question = "And you, who kills his people, have the courage to say that!?";
	text1 = "_I have been forced to do this. The Empire took the Thraldom and enslaved my people. I try to hit only Empire soldiers, but sometimes sacrifices have to be made. Now let me continue the story._ You remain silent and await his story.";
	text2 = "_For many years things remained quiet and nothing happened, until a few years back. Emperor Hawthorn was the ruler of the Empire. He was a vicious leader, and everybody was afraid of him. But then, when all seemed lost for us, he got killed._";
	text3 = "_By that time I was the Emperor of the Thraldom. I, of course, thought this to be excellent news. I was wrong. The Empire knew that the culprits were the Avernites, may the chicken gods bless them..._";

begintalknode 16;
	state = 11;
	personality = 20;
	nextstate = 12;
	condition = 1;
	question = "We are Avernites!";
	text1 = "He looks surprised at you. _You are?_ He checks your skins, and sees that they are indeed rather pale. _How nice... However, let me continue with my story._ You let him speak.";
	text2 = "*Cough* _Anyhow, the Empire knew the Avernites sent assassins to kill Hawthorn, and they attacked Avernum. However, that wasn't enough for them. Now they had a reason to deal with everything they thought to be suspicious. They attacked us._";
	text3 = "_The war between the Empire and the Thraldom took a year, then the Thralnian forces were eradicated. The Empire unleashed its full force on the Thraldom. Many cities were burnt to the ground. Filberton was the one to suffer most._";
	text4 = "_Already in that time Filberton had a magery school of stunning quality. The Empire found it to be dangerous, and so they attacked Filberton first. After destroying most of Voughton and Pleasantville too, they stopped attacking._";
	text5 = "_Instead, they built the Riverrod Empire headquarters and Fort Filbert, to make sure nothing disturbing happens. Then they left us. We were to build our cities up again, without any help. I myself had to flee._";
	text6 = "Thralni stops speaking and looks at you. _And now what? Still want to kill me, or do you prove me right?_";

begintalknode 17;
	state = 12;
	personality = 20;
	nextstate = -1;
	condition = 1;
	question = "That was a nice story, but you still can not kill your own people.";
	text1 = "He nods. _Okay. if that is what you believe, fine._ He stands up and calls for his guards. _We shall deal with you at once._ This may be your only chance to kill Thralni and eradicate Riverrod's problem. Good luck. Don't fail Riverrod.";
	code = 
		set_attitude(6,10);
		set_attitude(7,10);
		set_attitude(8,10);
		set_attitude(10,10);
		set_attitude(11,10);
		set_attitude(12,10);
		set_attitude(13,10);
		set_attitude(14,10);
		set_attitude(15,10);
		set_attitude(16,10);
		set_attitude(17,10);
		set_attitude(18,10);
		set_attitude(21,10);
		set_attitude(69,10);
		
		set_mobility(6,1);
		set_mobility(7,1);
		set_mobility(8,1);
		set_mobility(10,1);
		set_mobility(11,1);
		set_mobility(12,1);
		set_mobility(13,1);
		set_mobility(14,1);
		set_mobility(15,1);
		set_mobility(16,1);
		set_mobility(17,1);
		set_mobility(18,1);
		set_mobility(21,1);
		set_mobility(69,1);
	break;
	action = END_TALK;

// *** Everybody else in the thrown room ***

begintalknode 18;
	state = -1;
	personality = 87;
	nextstate = -1;
	condition = 1;
	question = "Person";
	text1 = "You want to talk to this person, but the reaction is not very friendly: _Could you talk to the Emperor, and not to me? Thank you._";

// *** Wife of official town 17 ***

begintalknode 19;
	state = -1;
	personality = 92;
	nextstate = 13;
	condition = 1;
	question = "Prisoner";
	text1 = "This woman sits here, terrified. She is very scared of what you may do to her, but when you can make it clear you aren't going to do anything to her, she seems to calm down slowly.";

begintalknode 20;
	state = 13;
	personality = 92;
	nextstate = 13;
	condition = 1;
	question = "How did you get here?";
	text1 = "_I was kidnapped. Oh please, my husband is an official at the Riverrod Empire headquarters, he must save me!_";

begintalknode 21;
	state = 13;
	personality = 92;
	nextstate = -1;
	condition = get_flag(17,2) == 1;
	question = "Your husband wanted us to find you.";
	text1 = "She starts smiling happily. _I knew he would send out people to come for me! Now tell me how to get out of this place._";
	text2 = "You give the woman a short description of how you came here, and thus how to get out. You tell her of the portal and where to go when you come in the remote hut. She thanks you and runs away.";
	code =
		set_flag(20,20,1);
		erase_char(38);
	break;